package com.kob.backend.service.impl.shopcarts;

import com.kob.backend.mapper.ShopcartsMapper;
import com.kob.backend.pojo.shopcart;
import com.kob.backend.service.shopcarts.ShopcartsAddService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ShopcartsAddServiceImpl implements ShopcartsAddService {
    @Autowired
    private ShopcartsMapper shopcartsMapper;
    @Override
    public void addshopcarts(Integer userid, Integer productid) {
        shopcart new_shopcart= new shopcart(userid,productid);
        shopcartsMapper.insert(new_shopcart);
    }
}
